Flipper Windows Enrolment
This script is used to enrol Windows PCs in the internal company domain and Intune.
Location
Requirements
- Flipper Zero with Bad USB capability (Momentum is used in the script)
- Access to Intune Enrolment
- A service account
Instructions
- Copy the script to your Flipper Zero. To do this, you can use the Flipper app or QFlipper and save it as
script.txt. - Start the Windows PC. It must be in the First Install Iso screen.
- Press
Shift + F10to open a Powershell. Click on the window to bring it into focus. - Run the script.
- Done.
Code
DELAY 2000
STRING powershell.exe
ENTER
DELAY 2000
STRING Install-Script -Name Get-WindowsAutopilotInfo
ENTER
DELAY 3000
STRING J
ENTER
DELAY 15000
STRING j
ENTER
DELAY 3000
STRING a
ENTER
DELAY 15000
STRING Set-ExecutionPolicy Bypass
ENTER
DELAY 3000
STRING Get-WindowsAutoPilotInfo.ps1 -online -Assign
ENTER
DELAY 60000
STRING [email protected] mailto:[email protected]
ENTER
DELAY 5000
STRING passowrd_intine_account
ENTER
DELAY 5000
ENTER
DELAY 480000
STRING shutdown -r -t 0
ENTER
DELAY 480000
STRING [email protected] mailto:[email protected]
ENTER
DELAY 2000
STRING Passwort_servcieaccpunt
ENTER
After Restart
In some cases, you will need to log in again with your service account email and password.
STRING [email protected]
TAB
STRING service_pw
ENTER